<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>链接服务器</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongo.sqltomongo.html">SQL 到 Mongo 的对应表</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongo.connecting.auth.html">认证</a></div>
 <div class="up"><a href="mongo.manual.html">手册</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongo.connecting" class="chapter">
 <h1>链接服务器</h1>
<h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="mongo.connecting.auth.html">认证</a></li><li><a href="mongo.connecting.rs.html">复制集合</a></li><li><a href="mongo.connecting.mongos.html">Sharding</a></li><li><a href="mongo.connecting.uds.html">Unix Domain Socket支持</a></li><li><a href="mongo.connecting.pools.html">Connection Pooling (version 1.2.0-1.2.12 *only*)</a></li><li><a href="mongo.connecting.persistent.html">Persistent Connections (version up to 1.1.4 *only*)</a></li></ul>


 <p class="para">
  链接到 mongo 服务器非常简单，只需要 <em>new MongoClient</em>，但是还可以改变更多的选项设置。
  <span class="function"><a href="mongoclient.construct.html" class="function">MongoClient::__construct()</a></span> 方法的文档中包括了所有的 API 参数。这个页面给出了一些详细说明，和一些实用的案例。
 </p>

 

 

 

 

 

 

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mongo.sqltomongo.html">SQL 到 Mongo 的对应表</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongo.connecting.auth.html">认证</a></div>
 <div class="up"><a href="mongo.manual.html">手册</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
